""" 
Created the $date 

@author:
"""


class $classname(QtGui.QWidget):
    
    """
    $classdoc
    """
    def __init__(self, objectdb, mainwindow):
        super($classname, self).__init__()
        
        self.objectDb = objectdb
        self. mainWindow = mainwindow
        self.initUI()
        if(not data.isDerivedFrom("$typeobject")):
            raise Exception("$classname can be instanciated only "+
                            "with a $typeobject derived object.")
            
    def initUI(self):
        
        mainLayout  =  QtGui.QVBoxLayout()
        
        # Create the group box in which we put a QVBoxLayout
        self.groupBox  =  QtGui.QGroupBox("$typeobject")
        vbox           =  QtGui.QVBoxLayout()
        vbox.addWidget(QtGui.QLabel("Hello, you develop here the graphic interface for $typeobject, object id: " +self.data.getId()))
        self.groupBox.setLayout(vbox)
        
        
        mainLayout.addWidget(self.groupBox)
        self.setLayout(mainLayout) 
        
        self.setMaximumHeight(100)
  
  